﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Lib.Utility;
using Module.BusinessLogic;
using Module.EntitiesInfo;

namespace Web
{
    public partial class gamedetails : System.Web.UI.Page
    {
        protected string Headline;
        protected string Body;
        protected string CreatedOn;
        protected string Linkdownload;
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                int contentID;
                contentID = Request.QueryString["Id"] == null ? 0 : ConvertUtility.ToInt32(Request.QueryString["Id"]);
                if (!IsPostBack)
                {
                    List<CMSGameInfo> info = CMSGameBL.SelectInsite(2, contentID.ToString(), "");
                    if (info != null)
                    {
                        Headline = info[0].NameGame;
                        Body = info[0].Contents;
                        CreatedOn = Convert.ToDateTime(info[0].CreatedOn).ToString();
                        Linkdownload = info[0].LinkGame;
                    }
                }
            }
            catch (Exception)
            {
            }
        }
    }
}